package com.tencreat.domain.mall.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author Administrator
 * 商城
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MallGoodTableVO extends BaseVO {

    private String name;

    private String oneLevel;

    private String twoLevel;

    private String goodsGroup;

    private String picUrl;

    private BigDecimal retailPrice;
    private BigDecimal counterPrice;
    private BigDecimal supplyPrice;

    private Long inventory;

    private Long contributionNum;


    private Long commoditySales;

    private Long expectCommoditySales;

    @ApiModelProperty(value= "商品类型 0 店铺商品 1 商城商品")
    private String goodsType;

    @ApiModelProperty(value= "商品类型 0 店铺商品 1 商城商品")
    private String orderType;

    @ApiModelProperty(value= "店铺商品类型 0 美食 1 医疗")
    private String storeType;

    @ApiModelProperty(value= "店铺id")
    private String storeId;

    @ApiModelProperty(value= "店铺名字")
    private String storeName;
    /****
     * 供应商名称
     */
    private String userName;

    private String salesDiscount;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime shelfTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value= "店铺商品截至时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    private Integer isOnSale;

    @ApiModelProperty(value= "品牌 0-关闭 1-开启")
    private Integer brand;

    @ApiModelProperty(value= "爆款 0-关闭 1-开启")
    private Integer burst;

    @ApiModelProperty(value= "是否人气推荐，如果设置则可以在人气推荐页面展示")
    private Integer isHot;

    @ApiModelProperty(value= "抵扣积分")
    private BigDecimal deductPrice;

    @ApiModelProperty("审核状态,0|待审核,1|已通过,2|已驳回")
    private Integer auditStatus;

    @ApiModelProperty(value= "是否置顶  0-否 1-是")
    private Integer top;

    @ApiModelProperty("截止时间")//
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime saleEndTime;

}
